package com.yanshaohui.feign.fallback;

import com.yanshaohui.bean.Person;
import com.yanshaohui.feign.ProviderBoot;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by TS-Ysh on 2018-05-16.
 */
@Component
public class ProviderBootFallback implements ProviderBoot {
    @Override
    public Person getOnePerson(Long id) {
        return null;
    }

    @Override
    public List<Person> getAllPerson() {
        return new ArrayList<Person>(0);
    }

    @Override
    public Person getOnePerson2(Long id) {
        return new Person(-99L,"unknown",-1,"unknown",-1);
    }
}
